<%@ page language="java" pageEncoding="UTF-8"%>
<HTML>
<HEAD>
	<meta http-equiv="Content-Language" content="zh-cn">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<LINK href="${pageContext.request.contextPath}/admin/css/Style.css" type="text/css" rel="stylesheet">
	<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
	<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
	<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</HEAD>
<body>
	<form id="userAction_save_do" name="Form1"
		action="${pageContext.request.contextPath}/addProduct" method="post"
		enctype="multipart/form-data">
		&nbsp;
		<table cellSpacing="1" cellPadding="5" width="100%" align="center"
			   bgColor="#eeeeee" style="border: 1px solid #8ba7e3" border="0" class="table">
			<tr  style="margin-bottom: 10px;">
				<td class="ta_01" align="center" colSpan="4" height="26">
					<strong style="font-size: 22px">添加商品</strong>
				</td>
			</tr>
			<tr style="margin-bottom: 10px;">
				<td align="center"  class="ta_01">商品名称：</td>
				<td class="ta_01" >
					<input type="text" name="name" class="form-control" value="${p.name }"  class="form-control" style="width: 200px" />
				</td>
				<td align="center" class="ta_01">商品价格：</td>
				<td class="ta_01" >
					<input type="text" name="price" class="form-control" value="${p.price }" style="width: 200px" />
				</td>
			</tr>
			<tr style="margin-bottom: 10px;">
				<td align="center"  class="ta_01">商品数量：</td>
				<td class="ta_01" >
					<input type="text" name="pnum" class="form-control" value="${p.pnum}"  class="form-control" style="width: 200px" />
				</td>
				<td align="center" class="ta_01">商品类别：</td>
				<td class="ta_01" >
					<select name="category" id="category" style="height:40px;background:#fff;
color: #a1a1a1; font-size: 16px;
border:1px solid #E4E4E4;cursor:pointer;position:relative;_filter:alpha(opacity=0);
">
						<option value="">--选择商品类加--</option>
						<option value="文学">文学</option>
						<option value="生活">生活</option>
						<option value="计算机">计算机</option>
						<option value="外语">外语</option>
						<option value="经营">经营</option>
						<option value="励志">励志</option>
						<option value="社科">社科</option>
						<option value="学术">学术</option>
						<option value="少儿">少儿</option>
						<option value="艺术">艺术</option>
						<option value="原版">原版</option>
						<option value="科技">科技</option>
						<option value="考试">考试</option>
						<option value="生活百科">生活百科</option>
					</select>
				</td>
			</tr>
			<tr style="margin-bottom: 10px;">
				<td align="center" class="ta_01">商品图片：</td>
				<td class="ta_01"  colSpan="3">
					<input type="file" name="upload" size="30" value=""  class="form-control" style="width: 200px" /></td>
			</tr>
			<TR style="margin-bottom: 10px;">
				<TD class="ta_01" align="center">商品描述：</TD>
				<TD class="ta_01"  colSpan="3">
					<textarea name="description" cols="30" rows="3" style="WIDTH: 96%"  class="form-control">${p.description}</textarea>
				</TD>
			</TR>
			<%--			<TR style="margin-bottom: 10px;">--%>
			<%--				<td align="center" colSpan="4" class="sep1">--%>
			<%--					<img src="${pageContext.request.contextPath}/admin/images/shim.gif">--%>
			<%--				</td>--%>
			<%--			</TR>--%>
			<tr style="margin-bottom: 10px;">
				<td class="ta_01" style="WIDTH: 100%" align="center"  colSpan="4">
					<input type="submit" class="btn btn-primary" value="确定" style="color: white;margin-top: 50px;margin-bottom: 20px">
					<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
					<input type="reset" value="重置" class="btn btn-warning" style="color: white;margin-top: 50px;margin-bottom: 20px"/>
					<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
					<INPUT class="btn btn-danger" type="button" onclick="history.go(-1)" value="返回" style="color: white;margin-top: 50px;margin-bottom: 20px"/>
					<span id="Label1"> </span>
				</td>
			</tr>
		</table>
	</form>
</body>
</HTML>